<?php
require_once("./includes/class.MySQL.inc.php");
class FetchFromMySQL extends MySQL {

	public function FetchAsObject($classname=NULL) {
		if ( isset($classname) ) 
		{
			return mysql_fetch_object($this->result, $classname);// or die(mysql_error());
		}
		else
		{
			return mysql_fetch_object($this->result);
		}
	}
	public function FetchAsFields()
	{
		return mysql_fetch_field( $this->result );
	}
}

?>